<?

$_table = 'CR_CLASSIFICATOR_VALUE o';
$_parent_key = 'classificatorvalue_id';

$res = array('name' => '', 'tree' => false);
//dbdebug();

if ($id = gccHuuid(param('init'))) {
	
	if ($d = datafetch('db_item', $_table, "id=$id", 'id, name'))
		$res['name'] = $d['name'];

}

header("Content-Type: application/json; charset=utf-8");
print json_encode($res);

exit;
